﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AgregarTrace
{
    internal struct FuncTableFileItem
    {
        public int      id;
        public string   name;
        public bool     enabled;
        public bool     enableChildren;

        public FuncTableFileItem (int id, string name)
        {
            // pasar esto a un item de una tablita de lua jijiji

            name = name.Replace(" ", "/*Space*/");

            this.id             = id;
            this.name           = name;
            this.enabled        = false;
            this.enableChildren = false;
        }

        public override string ToString ()
        {
            return string.Format(
                "{0} {1} {2} {3}", 
                id, 
                name, 
                enabled         ? "1" : "0", 
                enableChildren  ? "1" : "0"
            );
        }
    }
}
